/**********************************************************/
/* Goblin Defense - A tower defense game for Wii Homebrew */
/* Copyright (C) 2009 Ricardo Bueno Cordeiro              */
/* Licensed under de GNU General Public License v2.0      */
/*   See license_gplv2.txt for detalis                    */
/**********************************************************/

#ifndef __EFFECT_H_
#define __EFFECT_H_

#include <gccore.h>

#include "map_item.h"

class Effect : public MapItem {
private:
	f32 x, y;
	f32 width, height;
	u32 start_time;
	u32 duration;
	u32 sprite;

public:
	Effect(f32 x, f32 y, f32 w, f32 h, u32 dur, u32 sprite);

	void draw();
	void update(u32 step);
	int remove();
};

#endif
